package com.xing.controller;

import com.xing.http.HttpAPIService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2018/4/4 0004.
 */
@RestController
public class HelloController {
    @Resource
    private HttpAPIService httpAPIService;

    @GetMapping("/helloworld")
    public String helloworld() {
        return "helloworld";
    }

    @RequestMapping("/httpclient")
    public String test() throws Exception {
        String str = httpAPIService.doGet("http://www.baidu.com");
        System.out.println(str);
        return "hello";
    }

    public static void main(String[] args) {
        for(int i=38;i<=76;i++) {
            System.out.println("ffmpeg -ss 00:02:20.0 -to 00:42:21.0 -accurate_seek -i 后宫·甄嬛传.E"+i+".2011.BluRay.720p.x264.AC3-CMCT.mkv  -c copy -avoid_negative_ts 1 Eo"+i+"-b.mkv");
        }
    }
}
